import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/mutexPool/add',
    method: 'post',
    data
  })
}

export function addAppMutexPool(data) {
  return request({
    url: 'api/mutexPool/addAppMutexPool',
    method: 'post',
    data
  })
}

export function addAdminMutexPool(data) {
  return request({
    url: 'api/mutexPool/addAdminMutexPool',
    method: 'put',
    data
  })
}

export function delAdminMutexPool(data) {
  return request({
    url: 'api/mutexPool/delAdminMutexPool',
    method: 'post',
    data
  })
}

export function appDelMutexPool(data) {
  return request({
    url: 'api/mutexPool/appDelMutexPool',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/mutexPool/edit',
    method: 'put',
    data
  })
}

export default { addAppMutexPool, add, edit, appDelMutexPool, addAdminMutexPool, delAdminMutexPool }
